package org.dtrd.modules.shop.entity.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.dtrd.common.api.dto.BasePatientRequest;
import org.dtrd.config.pay.PayConstant.OrderType;
import org.dtrd.config.wechat.entity.request.wechatpay.SceneInfo;

/**
 * 微信预下单请求
 *
 * @author xiao
 * @date 2022/5/18 10:10 AM
 */
@Data
@ApiModel(value = "微信预下单")
public class WechatPrePayRequest extends BasePatientRequest {

    @ApiModelProperty(value = "订单编号", required = false)
    private String orderNo;

    @ApiModelProperty(value = "服务包ID", required = true)
    private Integer serviceId;

    @ApiModelProperty(value = "服务包规格", required = true)
    private String serviceSpec;

    /**
     * {@link  org.dtrd.config.pay.PayConstant.OrderType}
     */
    @ApiModelProperty(value = "订单类型", hidden = true)
    private Integer orderType= OrderType.SERVICE.getType();

    @ApiModelProperty(value = "小程序用户OpenId", example = "小程序支付时必填")
    private String openId;

    @ApiModelProperty(value = "应用ID", example = "如公众号ID")
    private String appId;

    @ApiModelProperty(value = "应用ID", example = "如公众号ID,H5支付时必填", notes = "H5支付时必填")
    private SceneInfo sceneInfo;

}
